import { createStore } from "vuex";

const store = createStore({
  modules: {
    index: {
      namespaced: true,
      state() {
        return {
          count: 0,
        };
      },
      mutations: {
        add(state) {
          state.count++;
        },
      },
    },
  },
});

export default store;
